package com.thingple.usb.listener;

import org.jetbrains.annotations.NotNull;

@FunctionalInterface
public interface StreamDownListener {


    /**
     * 下发数据监听
     * @param data payload
     * @param n 字节数
     * @param async 是否异步下发
     */
    void onWrite(@NotNull byte[] data, int n, boolean async);
}
